From: Florian Müllner Date: Sat, 5 Aug 2023 19:12:55 +0000 (+0200) Subject: status/backlight: Sync checked on level changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~49 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=910829f2700ec76ca514ae73acc579496d73f21d;p=gnome-shell.git status/backlight: Sync checked on level changes Since switching to property bindings/notifications, value changes only happen on actual changes, so we cannot rely on them as the sole source of updating the checked state. Part-of: --- diff --git a/js/ui/status/backlight.js b/js/ui/status/backlight.js index 4faf4fab4..74df6a6cc 100644 --- a/js/ui/status/backlight.js +++ b/js/ui/status/backlight.js @@ -127,6 +127,7 @@ const DiscreteItem = GObject.registerClass({ this._levelButtons.get('off').visible = this.nLevels > 0; this._levelButtons.get('high').visible = this.nLevels > 1; this._levelButtons.get('low').visible = this.nLevels > 2; + this._syncChecked(); } _syncChecked() {